package com.wrbug.mmkw.runtime

import java.lang.reflect.Type

/**
 *   DataConvertor.java
 *   author: wrbug
 *   date: 2019-09-24 12:24
 *
 */

interface DataConvertor {
    fun toBytes(data: Any?): ByteArray?

    fun fromBytes(data: ByteArray?, type: Type): Any?
}